package com.zhang.server.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {
    private Integer id;
    private String name;
    private String description;
    private String publish_date;
    private String author;
    private String publisher;
    private String category;
    private String book_no;
    private String cover;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private String createtime;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private String updatetime;

    private Integer score;
    private Integer nums;
}
